Skip to content

Conversation

@provokateurin
Copy link
Member

The test is not very portable right now, because it assumes binaries are in certain places while they don't have to be there necessarily:

There were 2 failures:

1) Test\BinaryFinderTest::testDefaultFindsCat
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'/bin/cat'
+'/usr/bin/cat'

/var/www/html/tests/lib/BinaryFinderTest.php:46

2) Test\BinaryFinderTest::testCustomPathFindsCat
Failed asserting that '/usr/bin/cat' matches expected false.

/var/www/html/tests/lib/BinaryFinderTest.php:70

This change removes these assumptions to make the tests pass on all systems (OK well, you still need to have cat installed).

Signed-off-by: provokateurin <kate@provokateurin.de>
@provokateurin provokateurin added this to the Nextcloud 33 milestone Sep 5, 2025
@provokateurin provokateurin requested a review from a team as a code owner September 5, 2025 07:50
@provokateurin provokateurin requested review from Altahrim and nfebe and removed request for a team September 5, 2025 07:50
@provokateurin provokateurin merged commit acb26a4 into master Sep 5, 2025
214 of 221 checks passed
@provokateurin provokateurin deleted the test/binary-finder/portability branch September 5, 2025 13:09
@skjnldsv skjnldsv modified the milestones: Nextcloud 33, Nextcloud 32 Oct 2, 2025
@nextcloud-bot nextcloud-bot mentioned this pull request Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants